Ext.namespace("org.microsite.group");

Group.prototype.getType = function() {return 'Group';};

org.microsite.util.ViewRegistry.add(new org.microsite.util.ViewHelper({
    type : Group,
    service : GroupRemote,
    editor : org.microsite.group.GroupEditor,
    template : new Ext.XTemplate('<table border="0" cellspacing="5">',
            '<tr><td><b>Name</b></td><td>{name}</td></tr>',
            '<tr><td><b>Description</b></td><td>{description}</td></tr>',
            '</table>'),
    field : [{name:'id'},{name:'name'},{name:'description'},{name:'parent'}],
    
    getChildTypes : function(data) {
        return [Group, Host, Project];
    },
    parentNodes: [{
        name : 'parent',
        type : Group
    }]
}));
